const TOKEN = process.env.VUE_APP_TOKEN

export const setToken = (value) => {
  return localStorage.setItem(TOKEN, value)
}

export const getToken = () => {
  return localStorage.getItem(TOKEN)
}

export const removeToken = () => {
  return localStorage.removeItem(TOKEN)
}

export const isLogin = () => {
  return !!localStorage.getItem(TOKEN)
}
